
project(GeoLoc C)

set(CMAKE_C_FLAGS "-g -Wall")
set(GD_DIR ${CMAKE_SOURCE_DIR}/)
#set(CURL_DIR ${CMAKE_SOURCE_DIR}/)
set(LIBXML2_DIR ${CMAKE_SOURCE_DIR}/)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/build)
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/build)
include_directories(${CMAKE_SOURCE_DIR}/)
link_directories(${LIBRARY_OUTPUT_PATH})

#execute_process(
#  COMMAND svn info
#  OUTPUT_VARIABLE svn_info
#  ERROR_QUIET
#  OUTPUT_STRIP_TRAILING_WHITESPACE)
#
#if(svn_info MATCHES Rev)
#  string(REGEX REPLACE ".*Revision: ([0-9]+).*" \\1 svn_revision "${svn_info}")
#else()
#  set(svn_revision "0")
#endif(svn_info MATCHES Rev)
#
#add_definitions( "-DSVN_REVISION=${svn_revision}" )


add_subdirectory(graph)
add_subdirectory(server)
add_subdirectory(visu)
add_subdirectory(client)
add_subdirectory(cache_utils)

